<!--<?php 
require_once template('header');
require_once template('left');
if($action=='search'){
print <<<EOT
<!-- 右边开始 -->
	<div id="right">
		<div id="location"><p><b>$navigation</b></p></div>
		<form method="post" action="search.php" name="mvmmall">
		<input type="hidden" value="detail" name="ps_subject">
		<div class="member_xg cat6">
			<div class="title8"><span>$lang[sitemap_search]</span></div>
			<dl>
				<dt>$lang[class_select]:</dt>
				<dd>$category_list<span>*</span></dd>
			</dl>
			<dl>
				<dt>$lang[keyword]:</dt>
				<dd><input name="ps_search" type="text" class="inp" id="ps_search" maxlength="50" /><span>*</span> <input type="checkbox" name="goods_advance" value="1"/>$lang[search_adv]<br/> $lang[search_msg]</dd>
			</dl>
			<dl>
				<dt>$lang[brand]:</dt>
				<dd>$brand_select</dd>
			</dl>	
			<dl>
				<dt><span class="search_td">$lang[code]:</span></dt>
				<dd><input name="ps_code" type="text" class="inp" id="ps_code" maxlength="20" /></dd>
			</dl>
			<dl>
				<dt>$lang[price_confine]:</dt>
				<dd><input name="ps_min_money" type="text" class="inp3" id="ps_min_money" maxlength="15" />
				 $lang[price] ~ &nbsp;&nbsp;<input name="ps_max_money" type="text" class="inp3" id="ps_max_money" />
				 $lang[price]</dd>
			</dl>
			<p class="zc1"><input type="submit" value="$lang[search]" class="btn2" /></p>
		</div>
		</form>
		<div class="title_b"><p></p></div>
	</div>
	<!-- 右边结束 -->
<!--
EOT;
} else { 
print <<<EOT
<!-- 右边开始 -->
	<div id="contrast" style="display:none;top:300px;">
		<div id="ContrastBox" class="wid">
			<p></p>
			<p></p>
		</div>
		<div class="pagebar"><img src="$imgpath/contrast.gif"  alt="$lang[contrast]" style="cursor:pointer" onclick="ContBegin()" /><img src="$imgpath/empty.gif"  style="cursor:pointer" onclick="ContClear()" /></div>
	</div>
	<script type="text/javascript" src="include/javascript/contrast.js"></script>
	
	<div id="right">
		<div id="location1"><p><b>$lang[location]</b>：$navigation &raquo;<span>$lang[goods_size]($total_count)</span></p></div>
		<div class="pro">
			<ul>
<!--
EOT;
foreach ($goods  as $val){
print <<<EOT
-->			
				
				<li><p><a href="$val[url]"><img src="$val[photo]" width="$cf_indexw" height="$cf_indexh" alt="$val[title]" /></a></p>
				<p class="sn"><a href="$val[url]" title="$val[title]" >$val[subject]</a>$val[addoption]</p>
				<p class="ss">$lang[marketprice]：<span>$val[goods_market_price]</span></p>
				<p class="sp">$lang[buy_price]：<span>$val[goods_sale_price]</span></p>
				<p>$lang[goods_hit]： $val[goods_hit]</p>
				<p> <a href="javascript:put_flow($val[uid],'C')" >$lang[buy]</a> | <a href="javascript:put_flow($val[uid],'S')" >$lang[wish]</a> | <a href="javascript:ContAdd('$val[subject]','$val[uid]','$val[goods_type]')"> $lang[contrast]</a> </p>
				</li>
<!--
EOT;
} print <<<EOT
-->	
			</ul>
			<div class="page">$page_list</div>
		</div>
		<div class="title_b"><p></p></div>
	</div>
	<!-- 右边结束 -->
<!--
EOT;
}?>-->